package com.zhuss.controller.core;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zhuss.common.BaseController;
import com.zhuss.core.processor.AppVersionRead;

/**
 * 查看版本更新
 * @author gavin
 *
 */

@RestController
@RequestMapping("/appVersion")
public class AppVersionController extends BaseController{
	@Autowired
	private AppVersionRead appVersionRead;
	
	
	/**
	 * 查询最新一条记录的版本号
	 * @return
	 */
	@PostMapping("/detail")
	public Object selectTopOne() {
		Object result = appVersionRead.selectTopOne();
		return result;
	}

}
